<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>成功</title>
</head>
<body>
<h1>登录成功</h1>
<h1 th:text="${session.userName}"></h1>

</body>
<script>
    function tishi3(){
        window.location.href="/";
    }
    setTimeout("tishi3()","2000");
</script>
</html>